﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Website/Views/Shared/Website.Master"
    Inherits="System.Web.Mvc.ViewPage<NewsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="left">
        <% Html.RenderPartial("ProductClassify"); %>
        <div id="report" class="m">
            <h2>
                同类新闻<em>
                    <%=Html.ActionLink("更多 >>", "Index", "News") %></em></h2>
            <div class="mc">
                <ul>
                    <%foreach (NewsEntity ne in Model.NewsList) { %>
                    <li><em>·</em><%=Html.ActionLink(ne.Title, "View", new { id = ne.NewsId }) %></li>
                    <%} %>
                </ul>
            </div>
        </div>
    </div>
    <div id="right">
        <div id="divb">
            <div class="divc">
                <ul>
                    <li><em>
                        <%=Model.News.Title %></em> </li>
                    <li>来源:
                        <%=Model.News.Author %>
                        添加时间:
                        <%=Model.News.AddDate %></li>
                    <li style="text-align: left;">
                        <%=Model.News.Content %></li>
                </ul>
            </div>
        </div>
        <%if (Model.News.IsAllowReplay) { %>
        <div class="divr">
            回复, 要加入回复
        </div>
        <%} %>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <%=Html.HtmlTitle(Model.News.Title, Model.News.MetaKeywords, Model.News.MetaDescription) %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
    <link rel="Stylesheet" type="text/css" href="<%= Url.Content("~/Css/Website/News.css") %>" />
    <link rel="Stylesheet" type="text/css" href="<%= Url.Content("~/Css/Website/ClassifyMenu.css") %>" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/Website/ClassifyMenu.js") %>"></script>
    <script type="text/javascript" src="<%= Url.Content("~/Scripts/Website/ClassifyMenuHtml.js") %>"></script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript">
        $(function () {
            var n = $(".topBanner .navigator li");
            n.removeClass("current");
            n[3].className = "current";
        });
    </script>
</asp:Content>
